using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class BattleLoader 
{
    public static void LoadNewGame()
    {
        ////PlayerPrefs.DeleteAll();
        //PlayerPrefs.DeleteKey("gold");
        //PlayerPrefs.DeleteKey("lv");
        //PlayerPrefs.DeleteKey("exp");
        //PlayerPrefs.DeleteKey("scd");
        //PlayerPrefs.DeleteKey("bcd");
        //UnityEngine.SceneManagement.SceneManager.LoadScene("Main", UnityEngine.SceneManagement.LoadSceneMode.Additive);
        //GameController.gold = DataManager.Stuff.userData.gold;
        //UIEngine.Stuff.Forward<EmptyPage>();
        //MainSceneUI.onBattleExited = () =>
        //{
        //    DataManager.Stuff.userData.gold = GameController.gold;
        //    DataManager.Stuff.Save();
        //    UIEngine.Stuff.BackTo<MainPage>();
        //};
    }

    public static void LoadOldGame()
    {
        UnityEngine.SceneManagement.SceneManager.LoadScene("Main");
    }
}
